package my.graduation.service;

import com.baomidou.mybatisplus.extension.service.IService;
import my.graduation.dto.AdminInfoDto;
import my.graduation.dto.EmployeeLoginDto;
import my.graduation.dto.EmployeeLogoutDto;
import my.graduation.dto.RepassDto;
import my.graduation.entity.Administrator;
import my.graduation.result.Result;
import my.graduation.vo.AdminLoginVO;
import my.graduation.vo.AdminVO;

import java.util.List;

/**
 * @Author: RavenLyn
 * @Date: 2024-11-27
 */
public interface AdminService extends IService<Administrator> {

    Result<AdminLoginVO> login(EmployeeLoginDto dto);

    Result logout(EmployeeLogoutDto dto);

    Result<List<AdminVO>> getList();

    Result<List<AdminVO>> getListByCon(AdminInfoDto dto);

    Result add(AdminInfoDto dto);

    Result update(AdminInfoDto dto);

    Result delete(AdminInfoDto dto);

    Result<AdminVO> getPersonal(AdminInfoDto dto);

    Result repass(RepassDto dto);
}
